/* 通用样式 */
.carousel-container,
.css-fade-carousel,
.js-slide-carousel,
.bootstrap-carousel {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background: #f8f9fa;
    height: 400px;
    position: relative;
}

/* 图片容器 - 确保完美居中 */
.img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* 图片样式 - 保持原始比例 */
.img-container img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* 标题样式 */
.slide-caption,
.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.6);
    color: white;
    padding: 15px;
    text-align: center;
}

/* ------------------------- */
/* 1. Bootstrap轮播专用样式 */
/* ------------------------- */
.bootstrap-carousel .carousel-inner {
    height: 100%;
}

.bootstrap-carousel .carousel-item {
    height: 100%;
    text-align: center;
}

/* ------------------------- */
/* 2. CSS淡入淡出轮播专用样式 */
/* ------------------------- */
.css-fade-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.css-fade-slide.active {
    opacity: 1;
}

/* ------------------------- */
/* 3. JS滑动轮播专用样式 */
/* ------------------------- */
.js-slide-container {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.js-slide {
    min-width: 100%;
    position: relative;
}

.js-prev, .js-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
}

.js-prev { left: 10px; }
.js-next { right: 10px; }
